const TransformPages = require('uni-read-pages')
const tfPages = new TransformPages({
    includes:['path','name','meta']
})

module.exports = {
    // 配置路径别名
    configureWebpack: {
		plugins: [
            new tfPages.webpack.DefinePlugin({
                ROUTES: JSON.stringify(tfPages.routes)
            })
		], 
        devServer: {
            // 调试时允许内网穿透，让外网的人访问到本地调试的H5页面
            disableHostCheck: true
        },
		optimization: {
			minimize: true
		}
    }
    // productionSourceMap: false,
	
}
